<template>
  <div>
    <div class="header">
      <div class="header-left">
        <van-icon name="icon04" class-prefix="icon" size="26" @click="toSearch"></van-icon>
      </div>
      <div class="header-middle">
        <img src="@/assets/imgs/m_hualogo.png" alt="" />
      </div>
      <div class="header-right">
        <van-icon name="kefu" class-prefix="icon" size="26"></van-icon>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    toSearch () {
      this.$router.push('/search')
    }
  }
}
</script>

<style lang="scss" scoped>
.header {
  background: #fff;
  position: fixed;
  height: 50px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 10;
  .header-middle {
    img {
      width: 188px;
    }
  }
}
</style>
